import request from "@/utils/request";
const pmsPatient = "/pmsPatient";

// 查询人口学列表
export function listPmsPatient(data) {
  return request({
    url: `${pmsPatient}/listPmsPatient`,
    method: "post",
    data: data,
  });
}

// 新增人口学
export function insertPmsPatient(data) {
  return request({
    url: `${pmsPatient}/insertPmsPatient`,
    method: "post",
    data: data,
  });
}

// 根据身份证号查询人口学
export function selectPmsPatientByIdCard(data) {
  return request({
    url: `${pmsPatient}/selectPmsPatientByIdCard`,
    method: "post",
    data: data,
  });
}

// 修改人口学
export function updatePmsPatient(data) {
  return request({
    url: `${pmsPatient}/updatePmsPatient`,
    method: "post",
    data: data,
  });
}

// 删除人口学
export function deletePmsPatient(data) {
  return request({
    url: `${pmsPatient}/deletePmsPatient`,
    method: "post",
    data: data,
  });
}

// 导出人口学
export function exportData(data) {
  return request({
    url: `${pmsPatient}/exportData`,
    method: "post",
    data: data,
    responseType: "blob",
  });
}
